package com.xframe.xdal.core.util;

import cn.hutool.core.bean.BeanUtil;
import lombok.extern.log4j.Log4j2;

import java.util.LinkedHashMap;
import java.util.Map;

@Log4j2
public class XBeanUtil {


    public static Map<String, Object> beanToMap(Object bean){
         return BeanUtil.beanToMap(bean);
    }

    public static Map<String, Object> beanToMap(Object bean, boolean isToUnderlineCase, boolean ignoreNullValue) {
        return BeanUtil.beanToMap(bean, new LinkedHashMap(), isToUnderlineCase, ignoreNullValue);
    }

    public static void copyProperties(Object source, Object target, boolean ignoreCase) {
        BeanUtil.copyProperties(source,target,ignoreCase);
    }



}
